package com.shop.cereshop.admin.service.im;
import com.shop.cereshop.admin.page.im.ImSingleMsgVO;
import com.shop.cereshop.commons.domain.im.tx.req.msg.MsgBody;
import com.shop.cereshop.commons.domain.im.tx.req.msg.UserSendMsgReq;
import org.springframework.scheduling.annotation.Async;

import java.util.List;

/**
 * 即时通讯服务
 */
public interface ImService {
    /**
     * 推送用户信息
     */
    Integer pushUserInfo();

    @Async
    void sendMsg(String fromAccount, List<MsgBody> msgBodyList);

    void callbackBeforeSendMsg(UserSendMsgReq req);

    ImSingleMsgVO getSingleMsg(String fromAccount, String toAccount);

}
